<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    //学生这个类型抽象出来
    //每个学生都有的公共提取
    //


    //代码冗余
    var s1 = {
      name: "jack",
      sex: 'male',
      age: 18,
      major: 'cs',
      hobby: "music"
    }

    var s2 = {
      name: "lucy",
      sex: 'female',
      age: 20,
      major: 'english',
    }
  </script>
</body>

</html>